package com.edu.internship.config.context;

import com.edu.internship.busi.entity.UserToken;

public class UserContextHolder {

    private static ThreadLocal<UserToken> threadLocal = new ThreadLocal<>();

    public static void set(UserToken userToken) {
        threadLocal.set(userToken);
    }

    public static UserToken get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
